<?php
http_response_code(404);
     $page = isset($_GET["page"])?$_GET["page"]:1;
     $start = ($page-1)*10;        
     $shoptype = $_GET["shoptype"];
     include "./mysql.php";    
     $sql = "select * from list_shop where shoptype = ${shoptype} limit ${start},20";
     $res = $mysqli->query($sql);
     while($row = $res->fetch_assoc()){
         $articles[] = $row;
     }
      print_r(json_encode($articles));